package com.siwen.service.impl;

import com.siwen.pojo.QuotaresultTbl;
import com.siwen.service.QuotaresultService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class QuotaresultServiceImpl implements QuotaresultService{
    @Resource
    private QuotaresultService quotaresultService;

    /**
     * 根据id查询
     * @param childid
     * @return
     */
    @Override
    public List<QuotaresultTbl> selectAll(int childid) {

        return quotaresultService.selectAll(childid);
    }

    /**
     * 查询所有
     * @return
     */
    @Override
    public List<QuotaresultTbl> selectChildQuota() {
        return quotaresultService.selectChildQuota();
    }

    /**
     * 添加
     * @param quotaresultTbl
     * @return
     */
    @Override
    public int insertQutoa(QuotaresultTbl quotaresultTbl) {
        return quotaresultService.insertQutoa(quotaresultTbl);
    }

    /**
     * 删除
     * @param childid
     * @return
     */
    @Override
    public int deleteQuto(int childid) {
        return quotaresultService.deleteQuto(childid);
    }
}
